﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RTracker.Models.Common;

namespace RTracker.Areas.Recruitment.Models.Calling
{
    public class GCalling
    {
        // members declaration
        private List<CCalling> _lstCalling;
        private CCalling _oCCalling;                              // to store object of CCalling
        private CStatus _oCStatus;                          // to store object of CStatus
        private CPaging _oCPaging;
        private int m_nId;                                // to store organization id in case of save to return it to view. Based upon that we will refresh grid.

        // Default Constructor
        public GCalling()
        {
            _lstCalling = null;
            _oCCalling = null;
            _oCStatus = null;
            _oCPaging = null;
        }

        // parameterized constructor
        public GCalling(List<CCalling> lstCalling, CCalling oCCalling, CStatus oCStatus, CPaging oCPaging)
        {
            _lstCalling = lstCalling;
            _oCCalling = oCCalling;
            _oCStatus = oCStatus;
            _oCPaging = oCPaging;
        }

        #region  "Properties"


        public List<CCalling> LstCalling
        {
            get { return _lstCalling; }
            set { _lstCalling = value; }
        }



        /// <summary>
        /// Used to store object of CCalling
        /// </summary>
        public CCalling Calling
        {
            get { return _oCCalling; }
            set { _oCCalling = value; }
        }


        /// <summary>
        /// Used to store object of CStatus
        /// </summary>
        public CStatus Status
        {
            get { return _oCStatus; }
            set { _oCStatus = value; }
        }

        /// <summary>
        /// Used to store object of CPaging
        /// </summary>
        public CPaging Paging
        {
            get { return _oCPaging; }
            set { _oCPaging = value; }
        }


        /// <summary>
        /// Used to store organization id
        /// </summary>
        public int Id
        {
            get { return m_nId; }
            set { m_nId = value; }
        }

        #endregion
    }
}